package com.elm_springboot_s.service;

import com.elm_springboot_s.pojo.Cart;
import java.util.List;

public interface CartService {
    List<Cart> listCartByUserId(Long userId);
    List<Cart> listCartByUserIdAndBusinessId(Long userId, Integer businessId);
    int saveCart(Long userId, Integer businessId, Integer foodId);
    int updateCart(Long userId, Integer businessId, Integer foodId, Integer quantity);
    int removeCart(Long userId, Integer businessId, Integer foodId);
    int removeCartByUserIdAndBusinessId(Long userId, Integer businessId);
} 